# 调用异步任务 & 获取执行结果 run_task.py
from tasks import add

result = add.delay(4, 4)
print('Is task ready: %s' % result.ready())

run_result = result.get(timeout=1)
print('Task result: %s' % run_result)
